package com.digitalchina.lxnsy.sy.all;


import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;


public class BzActivity extends BaseHtmlActivity {
    private int tag = 0;

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);

        loadUrl("standardBinding");
        callJsMethod("refresh");

        setTitle("标准绑定");


    }

    @Override
    public void onResume() {
        super.onResume();
        if (tag > 0) {
            callJsMethod("refresh");
        }
        tag++;
    }

    @Override
    public void rightOnClick() {


    }


    public class JsApi {


        @JavascriptInterface
        public void standardizedPreview(Object msg) {//引领方案
            go(BzDetailActivity.class);

        }

    }
}
